package com.qianyu.versioncontrolcore.enumerate;

/**
 * 统一返回枚举
 *
 * @author hehao
 */

public enum ResultEnum {

    SUCCESS("00000", "SUCCESS!", "成功!"),
    VERSION_GET_ERROR("500","ERROR!","版本获取错误！"),
    VERSION_IS_EXIST("10000", "ERROR!", "该版本已存在!"),
    CITY_CONFIG_EXIST("10001", "ERROR!", "该版本城市配置已存在!"),
    CITY_CONFIG_NOT_EXIST("10002", "ERROR!", "该版本城市配置不存在!"),
    CLIENT_ERROR("A0001", "ERROR!", "用户端错误!"),
    USER_REGISTRATION_ERROR("A0100", "ERROR!", "用户注册错误!"),
    USER_DID_NOT_AGREE_TO_THE_PRIVACY_AGREEMENT("A0101", "WARNING!", "用户未同意隐私协议!"),
    RESTRICTED_COUNTRY_OR_REGION_OF_REGISTRATION("A0102", "WARNING!", "注册国家或地区受限!"),
    USERNAME_VERIFICATION_FAILED("A0110", "WARNING!", "用户名校验失败!"),
    USERNAME_ALREADY_EXISTS("A0111", "WARNING!", "用户名已存在!"),
    USERNAME_CONTAINS_SENSITIVE_WORDS("A0112", "WARNING!", "用户名包含敏感词!"),
    USERNAME_CONTAINS_SPECIAL_CHARACTERS("A0113", "WARNING!", "用户名包含特殊字符!"),
    PASSWORD_VERIFICATION_FAILED("A0120", "WARNING!", "密码校验失败!"),
    PASSWORD_LENGTH_IS_NOT_ENOUGH("A0121", "WARNING!", "密码长度不够!"),
    PASSWORD_IS_NOT_STRONG_ENOUGH("A0122", "WARNING!", "密码强度不够!"),
    CHECK_CODE_INPUT_ERROR("A0130", "WARNING!", "校验码输入错误!"),
    SMS_VERIFICATION_CODE_INPUT_ERROR("A0131", "WARNING!", "短信校验码输入错误!"),
    EMAIL_VERIFICATION_CODE_INPUT_ERROR("A0132", "WARNING!", "邮件校验码输入错误!"),
    VOICE_CHECK_CODE_INPUT_ERROR("A0133", "WARNING!", "语音校验码输入错误!"),
    USER_ID_IS_ABNORMAL("A0140", "WARNING!", "用户证件异常!"),
    USER_ID_TYPE_IS_NOT_SELECTED("A0141", "WARNING!", "用户证件类型未选择!"),
    ILLEGAL_VERIFICATION_OF_MAINLAND_ID_CARD_NUMBER("A0142", "WARNING!", "大陆身份证编号校验非法!"),
    ILLEGAL_PASSPORT_NUMBER_VERIFICATION("A0143", "WARNING!", "护照编号校验非法!"),
    MILITARY_OFFICER_ID_NUMBER_VERIFICATION_IS_ILLEGAL("A0144", "WARNING!", "军官证编号校验非法!"),
    USER_BASIC_INFORMATION_VERIFICATION_FAILED("A0150", "WARNING!", "用户基本信息校验失败!"),
    PHONE_FORMAT_VERIFICATION_FAILED("A0151", "WARNING!", "手机格式校验失败!"),
    ADDRESS_FORMAT_VERIFICATION_FAILED("A0152", "WARNING!", "地址格式校验失败!"),
    EMAIL_FORMAT_VERIFICATION_FAILED("A0153", "WARNING!", "邮箱格式校验失败!"),
    USER_LOGIN_EXCEPTION("A0200", "WARNING!", "用户登录异常!"),
    USER_ACCOUNT_DOES_NOT_EXIST("A0201", "WARNING!", "用户账户不存在!"),
    USER_ACCOUNT_IS_FROZEN("A0202", "WARNING!", "用户账户被冻结!"),
    USER_ACCOUNT_HAS_BEEN_VOIDED("A0203", "WARNING!", "用户账户已作废!"),
    USER_PASSWORD_IS_WRONG("A0210", "WARNING!", "用户密码错误!"),
    USER_ENTERED_THE_WRONG_PASSWORD_EXCEEDED_THE_LIMIT("A0211", "WARNING!", "用户输入密码错误次数超限!"),
    USER_IDENTITY_VERIFICATION_FAILED("A0220", "WARNING!", "用户身份校验失败!"),
    USER_FINGERPRINT_RECOGNITION_FAILED("A0221", "WARNING!", "用户指纹识别失败!"),
    USER_FACE_RECOGNITION_FAILED("A0222", "WARNING!", "用户面容识别失败!"),
    USER_IS_NOT_AUTHORIZED_TO_LOGIN_BY_THIRD("A0223", "WARNING!", "用户未获得第三方登录授权!"),
    USER_LOGIN_HAS_EXPIRED("A0230", "WARNING!", "用户登录已过期!"),
    USER_VERIFICATION_CODE_ERROR("A0240", "WARNING!", "用户验证码错误!"),
    USER_VERIFICATION_CODE_EXCEEDS_LIMIT("A0241", "WARNING!", "用户验证码尝试次数超限!"),
    ABNORMAL_ACCESS_RIGHTS("A0300", "WARNING!", "访问权限异常!"),
    UNAUTHORIZED_ACCESS("A0301", "WARNING!", "访问未授权!"),
    AUTHORIZING("A0302", "LOADING!", "正在授权中!"),
    USER_AUTHORIZATION_REQUEST_REJECTED("A0303", "WARNING!", "用户授权申请被拒绝!"),
    BLOCKED_DUE_TO_THE_PRIVACY_SETTINGS_OF_THE_VISITOR("A0310", "WARNING!", "因访问对象隐私设置被拦截!"),
    AUTHORIZATION_HAS_EXPIRED("A0311", "WARNING!", "授权已过期!"),
    NO_PERMISSION_TO_USE_API("A0312", "WARNING!", "无权限使用API!"),
    USER_ACCESS_IS_BLOCKED("A0320", "WARNING!", "用户访问被拦截!"),
    BLACKLISTED_USERS("A0321", "WARNING!", "黑名单用户!"),
    ACCOUNT_IS_FROZEN("A0322", "WARNING!", "账号被冻结!"),
    ILLEGAL_IP_ADDRESS("A0323", "WARNING!", "非法IP地址!"),
    GATEWAY_ACCESS_IS_RESTRICTED("A0324", "WARNING!", "网关访问受限!"),
    REGIONAL_BLACKLIST("A0325", "WARNING!", "地域黑名单!"),
    SERVICE_ARREARS("A0330", "WARNING!", "服务已欠费!"),
    USER_SIGNATURE_IS_ABNORMAL("A0340", "WARNING!", "用户签名异常!"),
    RSA_SIGNATURE_ERROR("A0341", "ERROR!", "RSA签名错误!"),
    USER_REQUEST_PARAMETER_ERROR("A0400", "ERROR!", "用户请求参数错误!"),
    CONTAINS_ILLEGAL_AND_MALICIOUS_REDIRECT_LINKS("A0401", "WARNING!", "包含非法恶意跳转链接!"),
    INVALID_USER_INPUT("A0402", "WARNING!", "无效的用户输入!"),
    REQUIRED_PARAMETERS_FOR_REQUEST_ARE_EMPTY("A0410", "WARNING!", "请求必填参数为空!"),
    USER_ORDER_NUMBER_IS_EMPTY("A0411", "WARNING!", "用户订单号为空!"),
    ORDER_QUANTITY_IS_EMPTY("A0412", "WARNING!", "订购数量为空!"),
    MISSING_TIMESTAMP_PARAMETER("A0413", "WARNING!", "缺少时间戳参数!"),
    ILLEGAL_TIMESTAMP_PARAMETER("A0414", "WARNING!", "非法的时间戳参数!"),
    REQUEST_PARAMETER_VALUE_EXCEEDS_ALLOWED_RANGE("A0420", "WARNING!", "请求参数值超出允许的范围!"),
    PARAMETER_FORMAT_DOES_NOT_MATCH("A0421", "WARNING!", "参数格式不匹配!"),
    ADDRESS_NOT_IN_SERVICE("A0422", "WARNING!", "地址不在服务范围!"),
    TIME_IS_OUT_OF_SERVICE("A0423", "WARNING!", "时间不在服务范围!"),
    AMOUNT_EXCEEDS_LIMIT("A0424", "WARNING!", "金额超出限制!"),
    QUANTITY_EXCEEDS_THE_LIMIT("A0425", "WARNING!", "数量超出限制!"),
    BATCH_REQUESTS_PROCESSING_EXCEEDS_LIMIT("A0426", "WARNING!", "请求批量处理总个数超出限制!"),
    REQUEST_JSON_PARSING_FAILED("A0427", "ERROR!", "请求JSON解析失败!"),
    USER_INPUT_IS_ILLEGAL("A0430", "WARNING!", "用户输入内容非法!"),
    CONTAINS_PROHIBITED_SENSITIVE_WORDS("A0431", "WARNING!", "包含违禁敏感词!"),
    PICTURE_CONTAINS_PROHIBITED_INFORMATION("A0432", "WARNING!", "图片包含违禁信息!"),
    FILE_INFRINGES_COPYRIGHT("A0433", "WARNING!", "文件侵犯版权!"),
    USER_OPERATION_IS_ABNORMAL("A0440", "ERROR!", "用户操作异常!"),
    USER_PAYMENT_TIMEOUT("A0441", "ERROR!", "用户支付超时!"),
    CONFIRM_ORDER_TIMEOUT("A0442", "ERROR!", "确认订单超时!"),
    ORDER_CLOSED("A0443", "WARNING!", "订单已关闭!"),
    USER_REQUEST_SERVICE_EXCEPTION("A0500", "ERROR!", "用户请求服务异常!"),
    REQUESTS_EXCEEDS_THE_LIMIT("A0501", "WARNING!", "请求次数超出限制!"),
    CONCURRENT_REQUESTS_EXCEEDS_LIMIT("A0502", "WARNING!", "请求并发数超出限制!"),
    USER_OPERATION_PLEASE_WAIT("A0503", "LOADING!", "用户操作请等待!"),
    WEB_SOCKET_CONNECTION_ABNORMAL("A0504", "ERROR!", "WEBSOCKET连接异常!"),
    WEB_SOCKET_CONNECTION_DISCONNECTED("A0505", "WARNING!", "WEBSOCKET连接断开!"),
    USER_REPEATED_REQUEST("A0506", "WARNING!", "用户重复请求!"),
    ABNORMAL_USER_RESOURCES("A0600", "ERROR!", "用户资源异常!"),
    INSUFFICIENT_ACCOUNT_BALANCE("A0601", "WARNING!", "账户余额不足!"),
    INSUFFICIENT_USER_DISK_SPACE("A0602", "WARNING!", "用户磁盘空间不足!"),
    INSUFFICIENT_USER_MEMORY("A0603", "WARNING!", "用户内存空间不足!"),
    INSUFFICIENT_USER_OSS_CAPACITY("A0604", "WARNING!", "用户OSS容量不足!"),
    USER_UPLOAD_FILE_IS_ABNORMAL("A0700", "ERROR!", "用户上传文件异常!"),
    USER_UPLOAD_FILE_TYPE_DOES_NOT_MATCH("A0701", "WARNING!", "用户上传文件类型不匹配!"),
    USER_UPLOAD_FILE_IS_TOO_LARGE("A0702", "WARNING!", "用户上传文件太大!"),
    USER_UPLOAD_IMAGE_IS_TOO_LARGE("A0703", "WARNING!", "用户上传图片太大!"),
    USER_UPLOADED_VIDEO_IS_TOO_LARGE("A0704", "WARNING!", "用户上传视频太大!"),
    USER_COMPRESSED_FILE_UPLOADED_TOO_LARGE("A0705", "WARNING!", "用户上传压缩文件太大!"),
    USER_S_CURRENT_VERSION_IS_ABNORMAL("A0800", "ERROR!", "用户当前版本异常!"),
    USER_INSTALLED_VERSION_NOT_MATCH_SYSTEM("A0801", "WARNING!", "用户安装版本与系统不匹配!"),
    USER_INSTALLED_VERSION_IS_TOO_LOW("A0802", "WARNING!", "用户安装版本过低!"),
    USER_INSTALLED_VERSION_IS_TOO_HIGH("A0803", "WARNING!", "用户安装版本过高!"),
    USER_INSTALLED_VERSION_HAS_EXPIRED("A0804", "WARNING!", "用户安装版本已过期!"),
    USER_API_REQUEST_VERSION_DOES_NOT_MATCH("A0805", "WARNING!", "用户API请求版本不匹配!"),
    USER_API_REQUEST_VERSION_IS_TOO_HIGH("A0806", "WARNING!", "用户API请求版本过高!"),
    USER_API_REQUEST_VERSION_IS_TOO_LOW("A0807", "WARNING!", "用户API请求版本过低!"),
    USER_PRIVACY_IS_NOT_AUTHORIZED("A0900", "WARNING!", "用户隐私未授权!"),
    USER_PRIVACY_IS_NOT_SIGNED("A0901", "WARNING!", "用户隐私未签署!"),
    USER_CAMERA_IS_NOT_AUTHORIZED("A0902", "WARNING!", "用户摄像头未授权!"),
    USER_XJ_IS_NOT_AUTHORIZED("A0903", "WARNING!", "用户相机未授权!"),
    USER_PICTURE_LIBRARY_IS_NOT_AUTHORIZED("A0904", "WARNING!", "用户图片库未授权!"),
    USER_FILE_IS_NOT_AUTHORIZED("A0905", "WARNING!", "用户文件未授权!"),
    USER_LOCATION_INFORMATION_IS_NOT_AUTHORIZED("A0906", "WARNING!", "用户位置信息未授权!"),
    USER_ADDRESS_BOOK_IS_NOT_AUTHORIZED("A0907", "WARNING!", "用户通讯录未授权!"),
    USER_EQUIPMENT_IS_ABNORMAL("A1000", "WARNING!", "用户设备异常!"),
    USER_CAMERA_IS_ABNORMAL("A1001", "WARNING!", "用户相机异常!"),
    USER_MICROPHONE_IS_ABNORMAL("A1002", "WARNING!", "用户麦克风异常!"),
    THE_USER_S_EARPIECE_IS_ABNORMAL("A1003", "WARNING!", "用户听筒异常!"),
    USER_SPEAKER_IS_ABNORMAL("A1004", "WARNING!", "用户扬声器异常!"),
    USER_GPS_POSITIONING_IS_ABNORMAL("A1005", "WARNING!", "用户GPS定位异常!"),
    USER_REQUEST_WITHOUT_TOKEN("A1006", "WARNING!", "用户请求无TOKEN!"),

    SYSTEM_EXECUTION_ERROR("B0001", "ERROR!", "系统执行出错!"),
    SYSTEM_EXECUTION_TIMEOUT("B0100", "ERROR!", "系统执行超时!"),
    SYSTEM_ORDER_PROCESSING_TIMEOUT("B0101", "ERROR!", "系统订单处理超时!"),
    SYSTEM_DISASTER_TOLERANCE_FUNCTION_IS_TRIGGERED("B0200", "WARNING!", "系统容灾功能被触发!"),
    SYSTEM_CURRENT_LIMIT("B0210", "WARNING!", "系统限流!"),
    SYSTEM_FUNCTION_DEGRADATION("B0220", "WARNING!", "系统功能降级!"),
    ABNORMAL_SYSTEM_RESOURCES("B0300", "WARNING!", "系统资源异常!"),
    SYSTEM_RESOURCES_ARE_EXHAUSTED("B0310", "WARNING!", "系统资源耗尽!"),
    SYSTEM_RUNNING_OUT_OF_DISK_SPACE("B0311", "WARNING!", "系统磁盘空间耗尽!"),
    SYSTEM_MEMORY_IS_EXHAUSTED("B0312", "WARNING!", "系统内存耗尽!"),
    FILE_HANDLE_EXHAUSTED("B0313", "WARNING!", "文件句柄耗尽!"),
    SYSTEM_CONNECTION_POOL_IS_EXHAUSTED("B0314", "WARNING!", "系统连接池耗尽!"),
    SYSTEM_THREAD_POOL_EXHAUSTED("B0315", "WARNING!", "系统线程池耗尽!"),
    ABNORMAL_ACCESS_TO_SYSTEM_RESOURCES("B0320", "WARNING!", "系统资源访问异常!"),
    SYSTEM_FAILED_TO_READ_THE_DISK_FILE("B0321", "WARNING!", "系统读取磁盘文件失败!"),

    ERROR_IN_CALLING_THIRD_PARTY_SERVICE("C0001", "ERROR!", "调用第三方服务出错!"),
    MIDDLEWARE_SERVICE_ERROR("C0100", "ERROR!", "中间件服务出错!"),
    RPC_SERVICE_ERROR("C0110", "ERROR!", "RPC服务出错!"),
    RPC_SERVICE_NOT_FOUND("C0111", "WARNING!", "RPC服务未找到!"),
    RPC_SERVICE_IS_NOT_REGISTERED("C0112", "WARNING!", "RPC服务未注册!"),
    INTERFACE_DOES_NOT_EXIST("C0113", "WARNING!", "接口不存在!"),
    MESSAGE_SERVICE_ERROR("C0120", "ERROR!", "参数异常!"),
    MESSAGE_DELIVERY_ERROR("C0121", "ERROR!", "消息投递出错!"),
    MESSAGE_CONSUMPTION_ERROR("C0122", "ERROR!", "消息消费出错!"),
    MESSAGE_SUBSCRIPTION_ERROR("C0123", "ERROR!", "消息订阅出错!"),
    MESSAGE_GROUP_NOT_FOUND("C0124", "WARNING!", "消息分组未查到!"),
    CACHE_SERVICE_ERROR("C0130", "ERROR!", "缓存服务出错!"),
    KEY_LENGTH_EXCEEDS_THE_LIMIT("C0131", "WARNING!", "KEY长度超过限制!"),
    VALUE_LENGTH_EXCEEDS_THE_LIMIT("C0132", "WARNING!", "VALUE长度超过限制!"),
    STORAGE_CAPACITY_IS_FULL("C0133", "WARNING!", "存储容量已满!"),
    UNSUPPORTED_DATA_FORMAT("C0134", "WARNING!", "不支持的数据格式!"),
    ERROR_CONFIGURING_SERVICE("C0140", "ERROR!", "配置服务出错!"),
    NETWORK_RESOURCE_SERVICE_ERROR("C0150", "ERROR!", "网络资源服务出错!"),
    VPN_SERVICE_ERROR("C0151", "ERROR!", "VPN服务出错!"),
    CDN_SERVICE_ERROR("C0152", "ERROR!", "CDN服务出错!"),
    DOMAIN_NAME_RESOLUTION_SERVICE_ERROR("C0153", "ERROR!", "域名解析服务出错!"),
    GATEWAY_SERVICE_ERROR("C0154", "ERROR!", "网关服务出错!"),
    THIRD_PARTY_SYSTEM_EXECUTION_TIMEOUT("C0200", "ERROR!", "第三方系统执行超时!"),
    RPC_EXECUTION_TIMEOUT("C0210", "ERROR!", "RPC执行超时!"),
    MESSAGE_DELIVERY_TIMEOUT("C0220", "ERROR!", "消息投递超时!"),
    CACHE_SERVICE_TIMEOUT("C0230", "ERROR!", "缓存服务超时!"),
    CONFIGURE_SERVICE_TIMEOUT("C0240", "ERROR!", "配置服务超时!"),
    DATABASE_SERVICE_TIMEOUT("C0250", "ERROR!", "数据库服务超时!"),
    DATABASE_SERVICE_ERROR("C0300", "ERROR!", "数据库服务出错!"),
    TABLE_DOES_NOT_EXIST("C0311", "WARNING!", "表不存在!"),
    COLUMN_DOES_NOT_EXIST("C0312", "WARNING!", "列不存在!"),
    MULTIPLE_COLUMNS_WITH_SAME_NAME_IN_MULTI_TABLE_ASSOCIATION("C0321", "WARNING!", "多表关联中存在多个相同名称的列!"),
    DATABASE_DEADLOCK("C0331", "WARNING!", "数据库死锁!"),
    PRIMARY_KEY_CONFLICT("C0341", "WARNING!", "主键冲突!"),
    THIRD_DISASTER_RECOVERY_SYSTEM_IS_TRIGGERED("C0400", "WARNING!", "第三方容灾系统被触发!"),
    THIRD_PARTY_SYSTEM_CURRENT_LIMIT("C0401", "WARNING!", "第三方系统限流!"),
    DEGRADATION_OF_THIRD_PARTY_FUNCTIONS("C0402", "WARNING!", "第三方功能降级!"),
    NOTIFICATION_SERVICE_ERROR("C0500", "ERROR!", "通知服务出错!"),
    SMS_REMINDER_SERVICE_FAILED("C0501", "ERROR!", "短信提醒服务失败!"),
    VOICE_REMINDER_SERVICE_FAILED("C0502", "ERROR!", "语音提醒服务失败!"),
    EMAIL_REMINDER_SERVICE_FAILED("C0503", "ERROR!", "邮件提醒服务失败!");

    private final String code;
    private final String msg;
    private final String msgTranslation;

    ResultEnum(String code, String msg, String msgTranslation) {
        this.code = code;
        this.msg = msg;
        this.msgTranslation = msgTranslation;
    }

    public String getMsgTranslation() {
        return msgTranslation;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}